<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>注册界面</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<link rel="stylesheet" type="text/css" href="<%=basePath %>pages/css/easyui.css">
	<link rel="stylesheet" type="text/css" href="<%=basePath %>pages/css/icon.css">
	<script type="text/javascript" src="<%=basePath %>pages/js/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="<%=basePath %>pages/js/dataformat.js"></script>
	
	<link rel="stylesheet" href="<%=basePath%>pages/css/style1.css">
	<script src="<%=basePath%>pages/js/common.js"></script>
	<script src="<%=basePath%>pages/js/jquery.min.js"></script>
	
	<script type="text/javascript">
		function show(){
			var name = $("#userName").val();
			var url ="manage/selectName?userName="+name;
			$.post(url,null,function(data){
				$("#one").html(data);
			});
		}
	</script>
  </head>
  
  <body>
  	<h1>用户注册</h1>
    <div>
    	<form action="manage/registSucces" method="post">
    		<table>
    			<tr>
    				<td><input id="userName" name="userName" type="text" placeholder="用户名" autocomplete="off" style="width: 300px;" /></td>
    				<td width="100"><span id="one" style="width: 100px"></span></td>
    			</tr>
    			
    			<tr>
    				<td><input id="userPwd" name="userPwd" type="password" placeholder="密码" oncontextmenu="return false" onpaste="return false" style="width: 300px;"  onclick="show();"/></td>
    			</tr>
    			<tr>
    				<td><input id="" name="" type="password" placeholder="确认密码" oncontextmenu="return false" onpaste="return false" style="width: 300px;"/></td>
    			</tr>
    			
    			<tr>
    				<td><input type="submit" value="注册" style="width: 300px;"/></td>
    			</tr>
    			<tr>
    				<td>
    					<a href="manage/login">
		    				<button type="button">已有账号？</button>
		    			</a>
    				</td>
    			</tr>
    		</table>
    	</form>
    </div>
  </body>
</html>
